<?php
/**
 * 【超人】模块定义
 *
 * @author 超人
 * @url http://s.w7.cc/developer/index/59968
 */
defined('IN_IA') or exit('Access Denied');
require IA_ROOT.'/addons/superman_test/global.php';
include IA_ROOT.'/addons/superman_test/install.php';
$sql = "SELECT version FROM " . tablename('modules') . " WHERE name = :name";
$module_version = pdo_fetchcolumn($sql, array(':name' => SUPERMAN_MODULE_NAME));

/*
//upgrade sql
if (version_compare($module_version, '2.0.0', '<')) {
    //添加新字段
    if (!pdo_fieldexists('TODO', 'TODO')) {
        $sql = 'ALTER TABLE '.tablename('TODO')." ADD `TODO` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '标题' AFTER `TODO`";
        pdo_query($sql);
    }
}
*/